﻿{% extends 'base.html' %}
{% block title %}
<title>Admin</title>
{% endblock %}

{% block contents %}
<div id="main">
    <div id="add-items">
        <form action="." method="post">
        物品名称<input type="text" name="title" value="{{ item.title }}" />
        物品ID<input type="text" name="identity" value="{{ item.identity }}" />
        <br />
        <b class="q0">粗糙</b><input type="radio" name="quantity" value="q0" {% ifequal item.quantity 'q0' %}checked="checked"{% endifequal %}>
        <b class="q1">普通</b><input type="radio" name="quantity" value="q1" {% ifequal item.quantity 'q1' %}checked="checked"{% endifequal %}>
        <b class="q2">精良</b><input type="radio" name="quantity" value="q2" {% ifequal item.quantity 'q2' %}checked="checked"{% endifequal %}>
        <b class="q3">优秀</b><input type="radio" name="quantity" value="q3" {% ifequal item.quantity 'q3' %}checked="checked"{% endifequal %}>
        <b class="q4">史诗</b><input type="radio" name="quantity" value="q4" {% ifequal item.quantity 'q4' %}checked="checked"{% endifequal %}>
        <b class="q5">传说</b><input type="radio" name="quantity" value="q5" {% ifequal item.quantity 'q5' %}checked="checked"{% endifequal %}>
        <b class="q6">无敌</b><input type="radio" name="quantity" value="q6" {% ifequal item.quantity 'q6' %}checked="checked"{% endifequal %}>

        <br />
        愚人<input type="radio" name="category" value="yuren" {% ifequal item.category 'yuren' %}checked="checked"{% endifequal %}>
        报复<input type="radio" name="category" value="baofu" {% ifequal item.category 'baofu' %}checked="checked"{% endifequal %}>
        风暴<input type="radio" name="category" value="fengbao" {% ifequal item.category 'fengbao' %}checked="checked"{% endifequal %}>
        祝福<input type="radio" name="category" value="zhufu" {% ifequal item.category 'zhufu' %}checked="checked"{% endifequal %}>
        元素<input type="radio" name="category" value="yuansu" {% ifequal item.category 'yuansu' %}checked="checked"{% endifequal %}>
        督军<input type="radio" name="category" value="dujun" {% ifequal item.category 'dujun' %}checked="checked"{% endifequal %}>
        野兽<input type="radio" name="category" value="yeshou" {% ifequal item.category 'yeshou' %}checked="checked"{% endifequal %}>
        入口<input type="radio" name="category" value="rukou" {% ifequal item.category 'rukou' %}checked="checked"{% endifequal %}>
        <br />
        之一<input type="radio" name="number" value="1" {% ifequal item.number '1' %}checked="checked"{% endifequal %}>
        之二<input type="radio" name="number" value="2" {% ifequal item.number '2' %}checked="checked"{% endifequal %}>
        之三<input type="radio" name="number" value="3" {% ifequal item.number '3' %}checked="checked"{% endifequal %}>
        之四<input type="radio" name="number" value="4" {% ifequal item.number '4' %}checked="checked"{% endifequal %}>
        之五<input type="radio" name="number" value="5" {% ifequal item.number '5' %}checked="checked"{% endifequal %}>
        之六<input type="radio" name="number" value="6" {% ifequal item.number '6' %}checked="checked"{% endifequal %}>
        之七<input type="radio" name="number" value="7" {% ifequal item.number '7' %}checked="checked"{% endifequal %}>
        之八<input type="radio" name="number" value="8" {% ifequal item.number '8' %}checked="checked"{% endifequal %}>
        <br />
        <input type ="submit" value ="Submit">
        </form> 
    </div>
</div>
{% endblock %}